import request from '@/utils/request'
import { searchRes, searchResultOfSong } from './model/searchModel'
import { songListDetail } from './model/songList'

enum Api {
  cloudsearch = '/cloudsearch',
}

// 搜索
export const getCloudSearchApi = (keywords: string) => {
  return request.get<any, searchRes>(
    Api.cloudsearch + '?keywords=' + keywords,
    {
      params: {
        keywords,
      },
    }
  )
}

// export default getCloudSearchApi
